
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>扩展 · JavaScript学习</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Veng">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-pageview-count/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../nodejs/nodejs.html" />
    
    
    <link rel="prev" href="AJAX.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../基础/基础.html">
            
                <a href="../基础/基础.html">
            
                    
                    基础
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../基础/变量.html">
            
                <a href="../基础/变量.html">
            
                    
                    数据类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../基础/let和const命令.html">
            
                <a href="../基础/let和const命令.html">
            
                    
                    let和const命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../基础/数值.html">
            
                <a href="../基础/数值.html">
            
                    
                    数值
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../基础/字符串.html">
            
                <a href="../基础/字符串.html">
            
                    
                    字符串
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../基础/对象.html">
            
                <a href="../基础/对象.html">
            
                    
                    对象
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../基础/数组.html">
            
                <a href="../基础/数组.html">
            
                    
                    数组
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="../基础/Symbol.html">
            
                <a href="../基础/Symbol.html">
            
                    
                    Symbol
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8" data-path="../基础/函数.html">
            
                <a href="../基础/函数.html">
            
                    
                    函数
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.8.1" data-path="../基础/函数的扩展.html">
            
                <a href="../基础/函数的扩展.html">
            
                    
                    函数的扩展
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8.2" data-path="../基础/变量的解构赋值.html">
            
                <a href="../基础/变量的解构赋值.html">
            
                    
                    变量作用域与解构赋值
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8.3" data-path="../基础/函数3.html">
            
                <a href="../基础/函数3.html">
            
                    
                    方法函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8.4" data-path="../基础/高阶函数.html">
            
                <a href="../基础/高阶函数.html">
            
                    
                    高阶函数
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.8.4.1" data-path="../基础/map-reduce.html">
            
                <a href="../基础/map-reduce.html">
            
                    
                    map/reduce
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8.4.2" data-path="../基础/filter.html">
            
                <a href="../基础/filter.html">
            
                    
                    filter
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8.4.3" data-path="../基础/sort.html">
            
                <a href="../基础/sort.html">
            
                    
                    sort
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8.4.4" data-path="../基础/array其他方法.html">
            
                <a href="../基础/array其他方法.html">
            
                    
                    array其他方法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.8.5" data-path="../基础/闭包.html">
            
                <a href="../基础/闭包.html">
            
                    
                    闭包
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8.6" data-path="../基础/箭头函数.html">
            
                <a href="../基础/箭头函数.html">
            
                    
                    箭头函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8.7" data-path="../浏览器/Promise.html">
            
                <a href="../浏览器/Promise.html">
            
                    
                    Promise
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8.8" data-path="../基础/generator.html">
            
                <a href="../基础/generator.html">
            
                    
                    generator
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8.9" data-path="../基础/async.html">
            
                <a href="../基础/async.html">
            
                    
                    async
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.9" data-path="../基础/标准对象.html">
            
                <a href="../基础/标准对象.html">
            
                    
                    标准对象
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.9.1" data-path="../基础/SetMap.html">
            
                <a href="../基础/SetMap.html">
            
                    
                    Set,Map
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.9.2" data-path="../基础/Date.html">
            
                <a href="../基础/Date.html">
            
                    
                    Date
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.9.3" data-path="../基础/Math.html">
            
                <a href="../基础/Math.html">
            
                    
                    Math
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.9.4" data-path="../基础/Proxy.html">
            
                <a href="../基础/Proxy.html">
            
                    
                    Proxy
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.9.5" data-path="../基础/RepExp.html">
            
                <a href="../基础/RepExp.html">
            
                    
                    正则表达式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.9.6" data-path="../基础/正则表达式.html">
            
                <a href="../基础/正则表达式.html">
            
                    
                    正则表达式别篇
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.9.7" data-path="../基础/json.html">
            
                <a href="../基础/json.html">
            
                    
                    JSON
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.10" data-path="../基础/面向对象编程.html">
            
                <a href="../基础/面向对象编程.html">
            
                    
                    面向对象编程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.10.1" data-path="../基础/对象的扩展.html">
            
                <a href="../基础/对象的扩展.html">
            
                    
                    对象的扩展
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.10.2" data-path="../基础/创建对象.html">
            
                <a href="../基础/创建对象.html">
            
                    
                    创建对象
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.10.3" data-path="../基础/原型继承.html">
            
                <a href="../基础/原型继承.html">
            
                    
                    原型继承
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.10.4" data-path="../基础/class继承.html">
            
                <a href="../基础/class继承.html">
            
                    
                    class继承
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.10.5" data-path="../基础/模块化Module.html">
            
                <a href="../基础/模块化Module.html">
            
                    
                    模块化Module
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.11" data-path="../基础/异常处理.html">
            
                <a href="../基础/异常处理.html">
            
                    
                    异常处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.12" data-path="../基础/编程风格.html">
            
                <a href="../基础/编程风格.html">
            
                    
                    编程风格
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../js扩展/js扩展.html">
            
                <a href="../js扩展/js扩展.html">
            
                    
                    js 扩展
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../js扩展/字符串.html">
            
                <a href="../js扩展/字符串.html">
            
                    
                    字符串
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../浏览器/浏览器.html">
            
                <a href="../浏览器/浏览器.html">
            
                    
                    浏览器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../浏览器/浏览器对象.html">
            
                <a href="../浏览器/浏览器对象.html">
            
                    
                    浏览器对象
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../浏览器/操作DOM.html">
            
                <a href="../浏览器/操作DOM.html">
            
                    
                    操作DOM
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.2.1" data-path="../浏览器/更新DOM.html">
            
                <a href="../浏览器/更新DOM.html">
            
                    
                    更新DOM
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2.2" data-path="../浏览器/插入DOM.html">
            
                <a href="../浏览器/插入DOM.html">
            
                    
                    插入DOM
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2.3" data-path="../浏览器/删除DOM.html">
            
                <a href="../浏览器/删除DOM.html">
            
                    
                    删除DOM
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../浏览器/DOM事件.html">
            
                <a href="../浏览器/DOM事件.html">
            
                    
                    DOM事件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../浏览器/操作表单.html">
            
                <a href="../浏览器/操作表单.html">
            
                    
                    操作表单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../浏览器/操作文件.html">
            
                <a href="../浏览器/操作文件.html">
            
                    
                    操作文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="../浏览器/AJAX.html">
            
                <a href="../浏览器/AJAX.html">
            
                    
                    AJAX
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.7" data-path="../浏览器/Canvas.html">
            
                <a href="../浏览器/Canvas.html">
            
                    
                    Canvas
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="jquery.html">
            
                <a href="jquery.html">
            
                    
                    Jquery
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="选择器.html">
            
                <a href="选择器.html">
            
                    
                    选择器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1.1" data-path="层级选择器.html">
            
                <a href="层级选择器.html">
            
                    
                    层级选择器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.1.2" data-path="查找和过滤.html">
            
                <a href="查找和过滤.html">
            
                    
                    查找和过滤
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="操作DOM.html">
            
                <a href="操作DOM.html">
            
                    
                    操作DOM
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.2.1" data-path="修改DOM结构.html">
            
                <a href="修改DOM结构.html">
            
                    
                    修改DOM结构
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="事件.html">
            
                <a href="事件.html">
            
                    
                    事件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="动画.html">
            
                <a href="动画.html">
            
                    
                    动画
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="AJAX.html">
            
                <a href="AJAX.html">
            
                    
                    AJAX
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.5.6" data-path="扩展.html">
            
                <a href="扩展.html">
            
                    
                    扩展
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../nodejs/nodejs.html">
            
                <a href="../nodejs/nodejs.html">
            
                    
                    Nodejs
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../nodejs/模块.html">
            
                <a href="../nodejs/模块.html">
            
                    
                    模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../nodejs/path.html">
            
                <a href="../nodejs/path.html">
            
                    
                    path
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../nodejs/文件操作.html">
            
                <a href="../nodejs/文件操作.html">
            
                    
                    文件操作 fs
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../nodejs/流Stream.html">
            
                <a href="../nodejs/流Stream.html">
            
                    
                    流Stream
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../nodejs/zlib压缩解压缩.html">
            
                <a href="../nodejs/zlib压缩解压缩.html">
            
                    
                    zlib压缩解压缩
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../nodejs/net网络.html">
            
                <a href="../nodejs/net网络.html">
            
                    
                    net网络
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../nodejs/http.html">
            
                <a href="../nodejs/http.html">
            
                    
                    http
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="../nodejs/express框架.html">
            
                <a href="../nodejs/express框架.html">
            
                    
                    express框架
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.9" data-path="../nodejs/process进程.html">
            
                <a href="../nodejs/process进程.html">
            
                    
                    process 进程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.10" data-path="../nodejs/child_process.html">
            
                <a href="../nodejs/child_process.html">
            
                    
                    child_process
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.11" data-path="../nodejs/os.html">
            
                <a href="../nodejs/os.html">
            
                    
                    os-操作系统
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../react/react.html">
            
                <a href="../react/react.html">
            
                    
                    React
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >扩展</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x6269;&#x5C55;">&#x6269;&#x5C55;</h1>
<p>&#x5F53;&#x6211;&#x4EEC;&#x4F7F;&#x7528;jQuery&#x5BF9;&#x8C61;&#x7684;&#x65B9;&#x6CD5;&#x65F6;&#xFF0C;&#x7531;&#x4E8E;jQuery&#x5BF9;&#x8C61;&#x53EF;&#x4EE5;&#x64CD;&#x4F5C;&#x4E00;&#x7EC4;DOM&#xFF0C;&#x800C;&#x4E14;&#x652F;&#x6301;&#x94FE;&#x5F0F;&#x64CD;&#x4F5C;&#xFF0C;&#x6240;&#x4EE5;&#x7528;&#x8D77;&#x6765;&#x975E;&#x5E38;&#x65B9;&#x4FBF;&#x3002;</p>
<p>&#x4F46;&#x662F;jQuery&#x5185;&#x7F6E;&#x7684;&#x65B9;&#x6CD5;&#x6C38;&#x8FDC;&#x4E0D;&#x53EF;&#x80FD;&#x6EE1;&#x8DB3;&#x6240;&#x6709;&#x7684;&#x9700;&#x6C42;&#x3002;&#x6BD4;&#x5982;&#xFF0C;&#x6211;&#x4EEC;&#x60F3;&#x8981;&#x9AD8;&#x4EAE;&#x663E;&#x793A;&#x67D0;&#x4E9B;DOM&#x5143;&#x7D20;&#xFF0C;&#x7528;jQuery&#x53EF;&#x4EE5;&#x8FD9;&#x4E48;&#x5B9E;&#x73B0;&#xFF1A;</p>
<pre><code>$(&apos;span.hl&apos;).css(&apos;backgroundColor&apos;, &apos;#fffceb&apos;).css(&apos;color&apos;, &apos;#d85030&apos;);

$(&apos;p a.hl&apos;).css(&apos;backgroundColor&apos;, &apos;#fffceb&apos;).css(&apos;color&apos;, &apos;#d85030&apos;);
</code></pre><p>&#x603B;&#x662F;&#x5199;&#x91CD;&#x590D;&#x4EE3;&#x7801;&#x53EF;&#x4E0D;&#x597D;&#xFF0C;&#x4E07;&#x4E00;&#x4EE5;&#x540E;&#x8FD8;&#x8981;&#x4FEE;&#x6539;&#x5B57;&#x4F53;&#x5C31;&#x66F4;&#x9EBB;&#x70E6;&#x4E86;&#xFF0C;&#x80FD;&#x4E0D;&#x80FD;&#x7EDF;&#x4E00;&#x8D77;&#x6765;&#xFF0C;&#x5199;&#x4E2A;<code>highlight()</code>&#x65B9;&#x6CD5;&#xFF1F;</p>
<pre><code class="lang-javascript">$(<span class="hljs-string">&apos;span.hl&apos;</span>).highlight();

$(<span class="hljs-string">&apos;p a.hl&apos;</span>).highlight();
</code></pre>
<p>&#x7B54;&#x6848;&#x662F;&#x80AF;&#x5B9A;&#x7684;&#x3002;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x6269;&#x5C55;jQuery&#x6765;&#x5B9E;&#x73B0;&#x81EA;&#x5B9A;&#x4E49;&#x65B9;&#x6CD5;&#x3002;&#x5C06;&#x6765;&#x5982;&#x679C;&#x8981;&#x4FEE;&#x6539;&#x9AD8;&#x4EAE;&#x7684;&#x903B;&#x8F91;&#xFF0C;&#x53EA;&#x9700;&#x4FEE;&#x6539;&#x4E00;&#x5904;&#x6269;&#x5C55;&#x4EE3;&#x7801;&#x3002;&#x8FD9;&#x79CD;&#x65B9;&#x5F0F;&#x4E5F;&#x79F0;&#x4E3A;&#x7F16;&#x5199;jQuery&#x63D2;&#x4EF6;&#x3002;</p>
<h3 id="&#x7F16;&#x5199;jquery&#x63D2;&#x4EF6;">&#x7F16;&#x5199;jQuery&#x63D2;&#x4EF6;</h3>
<p>&#x7ED9;jQuery&#x5BF9;&#x8C61;&#x7ED1;&#x5B9A;&#x4E00;&#x4E2A;&#x65B0;&#x65B9;&#x6CD5;&#x662F;&#x901A;&#x8FC7;&#x6269;&#x5C55;<code>$.fn</code>&#x5BF9;&#x8C61;&#x5B9E;&#x73B0;&#x7684;&#x3002;&#x8BA9;&#x6211;&#x4EEC;&#x6765;&#x7F16;&#x5199;&#x7B2C;&#x4E00;&#x4E2A;&#x6269;&#x5C55;&#x2014;&#x2014;<code>highlight1()</code>&#xFF1A;</p>
<pre><code class="lang-javascript">$.fn.highlight1 = <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"></span>) </span>{
    <span class="hljs-comment">// this&#x5DF2;&#x7ED1;&#x5B9A;&#x4E3A;&#x5F53;&#x524D;jQuery&#x5BF9;&#x8C61;:</span>
    <span class="hljs-keyword">this</span>.css(<span class="hljs-string">&apos;backgroundColor&apos;</span>, <span class="hljs-string">&apos;#fffceb&apos;</span>).css(<span class="hljs-string">&apos;color&apos;</span>, <span class="hljs-string">&apos;#d85030&apos;</span>);
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>;
}
</code></pre>
<p>&#x6CE8;&#x610F;&#x5230;&#x51FD;&#x6570;&#x5185;&#x90E8;&#x7684;<code>this</code>&#x5728;&#x8C03;&#x7528;&#x65F6;&#x88AB;&#x7ED1;&#x5B9A;&#x4E3A;jQuery&#x5BF9;&#x8C61;&#xFF0C;&#x6240;&#x4EE5;&#x51FD;&#x6570;&#x5185;&#x90E8;&#x4EE3;&#x7801;&#x53EF;&#x4EE5;&#x6B63;&#x5E38;&#x8C03;&#x7528;&#x6240;&#x6709;jQuery&#x5BF9;&#x8C61;&#x7684;&#x65B9;&#x6CD5;&#x3002;</p>
<p>&#x5BF9;&#x4E8E;&#x5982;&#x4E0B;&#x7684;HTML&#x7ED3;&#x6784;&#xFF1A;</p>
<pre><code class="lang-html"><span class="hljs-comment">&lt;!-- HTML&#x7ED3;&#x6784; --&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">id</span>=<span class="hljs-string">&quot;test-highlight1&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>&#x4EC0;&#x4E48;&#x662F;<span class="hljs-tag">&lt;<span class="hljs-name">span</span>&gt;</span>jQuery<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">span</span>&gt;</span>jQuery<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>&#x662F;&#x76EE;&#x524D;&#x6700;&#x6D41;&#x884C;&#x7684;<span class="hljs-tag">&lt;<span class="hljs-name">span</span>&gt;</span>JavaScript<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>&#x5E93;&#x3002;<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<p>&#x4E3A;&#x4EC0;&#x4E48;&#x6700;&#x540E;&#x8981;<code>return this;</code>&#xFF1F;&#x56E0;&#x4E3A;jQuery&#x5BF9;&#x8C61;&#x652F;&#x6301;&#x94FE;&#x5F0F;&#x64CD;&#x4F5C;&#xFF0C;&#x6211;&#x4EEC;&#x81EA;&#x5DF1;&#x5199;&#x7684;&#x6269;&#x5C55;&#x65B9;&#x6CD5;&#x4E5F;&#x8981;&#x80FD;&#x7EE7;&#x7EED;&#x94FE;&#x5F0F;&#x4E0B;&#x53BB;&#xFF1A;</p>
<pre><code class="lang-javascript">$(<span class="hljs-string">&apos;span.hl&apos;</span>).highlight1().slideDown();
</code></pre>
<p>&#x4E0D;&#x7136;&#xFF0C;&#x7528;&#x6237;&#x8C03;&#x7528;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x5C31;&#x4E0D;&#x5F97;&#x4E0D;&#x628A;&#x4E0A;&#x9762;&#x7684;&#x4EE3;&#x7801;&#x62C6;&#x6210;&#x4E24;&#x884C;&#x3002;</p>
<p>&#x4F46;&#x662F;&#x8FD9;&#x4E2A;&#x7248;&#x672C;&#x5E76;&#x4E0D;&#x5B8C;&#x7F8E;&#x3002;&#x6709;&#x7684;&#x7528;&#x6237;&#x5E0C;&#x671B;&#x9AD8;&#x4EAE;&#x7684;&#x989C;&#x8272;&#x80FD;&#x81EA;&#x5DF1;&#x6765;&#x6307;&#x5B9A;&#xFF0C;&#x600E;&#x4E48;&#x529E;&#xFF1F;</p>
<p>&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x7ED9;&#x65B9;&#x6CD5;&#x52A0;&#x4E2A;&#x53C2;&#x6570;&#xFF0C;&#x8BA9;&#x7528;&#x6237;&#x81EA;&#x5DF1;&#x628A;&#x53C2;&#x6570;&#x7528;&#x5BF9;&#x8C61;&#x4F20;&#x8FDB;&#x53BB;&#x3002;&#x4E8E;&#x662F;&#x6211;&#x4EEC;&#x6709;&#x4E86;&#x7B2C;&#x4E8C;&#x4E2A;&#x7248;&#x672C;&#x7684;<code>highlight2()</code>&#xFF1A;</p>
<pre><code class="lang-javascript">$.fn.highlight2 = <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">options</span>) </span>{
    <span class="hljs-comment">// &#x8981;&#x8003;&#x8651;&#x5230;&#x5404;&#x79CD;&#x60C5;&#x51B5;:</span>
    <span class="hljs-comment">// options&#x4E3A;undefined</span>
    <span class="hljs-comment">// options&#x53EA;&#x6709;&#x90E8;&#x5206;key</span>
    <span class="hljs-keyword">var</span> bgcolor = options &amp;&amp; options.backgroundColor || <span class="hljs-string">&apos;#fffceb&apos;</span>;
    <span class="hljs-keyword">var</span> color = options &amp;&amp; options.color || <span class="hljs-string">&apos;#d85030&apos;</span>;
    <span class="hljs-keyword">this</span>.css(<span class="hljs-string">&apos;backgroundColor&apos;</span>, bgcolor).css(<span class="hljs-string">&apos;color&apos;</span>, color);
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>;
}
</code></pre>
<pre><code class="lang-javascript">$(<span class="hljs-string">&apos;#test-highlight2 span&apos;</span>).highlight2({
    backgroundColor: <span class="hljs-string">&apos;#00a8e6&apos;</span>,
    color: <span class="hljs-string">&apos;#ffffff&apos;</span>
});
</code></pre>
<p>&#x5BF9;&#x4E8E;&#x9ED8;&#x8BA4;&#x503C;&#x7684;&#x5904;&#x7406;&#xFF0C;&#x6211;&#x4EEC;&#x7528;&#x4E86;&#x4E00;&#x4E2A;&#x7B80;&#x5355;&#x7684;<code>&amp;&amp;</code>&#x548C;<code>||</code>&#x77ED;&#x8DEF;&#x64CD;&#x4F5C;&#x7B26;&#xFF0C;&#x603B;&#x80FD;&#x5F97;&#x5230;&#x4E00;&#x4E2A;&#x6709;&#x6548;&#x7684;&#x503C;&#x3002;</p>
<p>&#x53E6;&#x4E00;&#x79CD;&#x65B9;&#x6CD5;&#x662F;&#x4F7F;&#x7528;jQuery&#x63D0;&#x4F9B;&#x7684;&#x8F85;&#x52A9;&#x65B9;&#x6CD5;<code>$.extend(target, obj1, obj2, ...)</code>&#xFF0C;&#x5B83;&#x628A;&#x591A;&#x4E2A;object&#x5BF9;&#x8C61;&#x7684;&#x5C5E;&#x6027;&#x5408;&#x5E76;&#x5230;&#x7B2C;&#x4E00;&#x4E2A;target&#x5BF9;&#x8C61;&#x4E2D;&#xFF0C;&#x9047;&#x5230;&#x540C;&#x540D;&#x5C5E;&#x6027;&#xFF0C;&#x603B;&#x662F;&#x4F7F;&#x7528;&#x9760;&#x540E;&#x7684;&#x5BF9;&#x8C61;&#x7684;&#x503C;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x8D8A;&#x5F80;&#x540E;&#x4F18;&#x5148;&#x7EA7;&#x8D8A;&#x9AD8;&#xFF1A;</p>
<pre><code class="lang-javascript"><span class="hljs-comment">// &#x628A;&#x9ED8;&#x8BA4;&#x503C;&#x548C;&#x7528;&#x6237;&#x4F20;&#x5165;&#x7684;options&#x5408;&#x5E76;&#x5230;&#x5BF9;&#x8C61;{}&#x4E2D;&#x5E76;&#x8FD4;&#x56DE;:</span>
<span class="hljs-keyword">var</span> opts = $.extend({}, {
    backgroundColor: <span class="hljs-string">&apos;#00a8e6&apos;</span>,
    color: <span class="hljs-string">&apos;#ffffff&apos;</span>
}, options);
</code></pre>
<p>&#x7D27;&#x63A5;&#x7740;&#x7528;&#x6237;&#x5BF9;<code>highlight2()</code>&#x63D0;&#x51FA;&#x4E86;&#x610F;&#x89C1;&#xFF1A;&#x6BCF;&#x6B21;&#x8C03;&#x7528;&#x90FD;&#x9700;&#x8981;&#x4F20;&#x5165;&#x81EA;&#x5B9A;&#x4E49;&#x7684;&#x8BBE;&#x7F6E;&#xFF0C;&#x80FD;&#x4E0D;&#x80FD;&#x8BA9;&#x6211;&#x81EA;&#x5DF1;&#x8BBE;&#x5B9A;&#x4E00;&#x4E2A;&#x7F3A;&#x7701;&#x503C;&#xFF0C;&#x4EE5;&#x540E;&#x7684;&#x8C03;&#x7528;&#x7EDF;&#x4E00;&#x4F7F;&#x7528;&#x65E0;&#x53C2;&#x6570;&#x7684;<code>highlight2()</code>&#xFF1F;</p>
<p>&#x4E5F;&#x5C31;&#x662F;&#x8BF4;&#xFF0C;&#x6211;&#x4EEC;&#x8BBE;&#x5B9A;&#x7684;&#x9ED8;&#x8BA4;&#x503C;&#x5E94;&#x8BE5;&#x80FD;&#x5141;&#x8BB8;&#x7528;&#x6237;&#x4FEE;&#x6539;&#x3002;</p>
<p>&#x90A3;&#x9ED8;&#x8BA4;&#x503C;&#x653E;&#x54EA;&#x6BD4;&#x8F83;&#x5408;&#x9002;&#xFF1F;&#x653E;&#x5168;&#x5C40;&#x53D8;&#x91CF;&#x80AF;&#x5B9A;&#x4E0D;&#x5408;&#x9002;&#xFF0C;&#x6700;&#x4F73;&#x5730;&#x70B9;&#x662F;<code>$.fn.highlight2</code>&#x8FD9;&#x4E2A;&#x51FD;&#x6570;&#x5BF9;&#x8C61;&#x672C;&#x8EAB;&#x3002;</p>
<p>&#x4E8E;&#x662F;&#x6700;&#x7EC8;&#x7248;&#x7684;<code>highlight()</code>&#x7EC8;&#x4E8E;&#x8BDE;&#x751F;&#x4E86;&#xFF1A;</p>
<pre><code class="lang-javascript">$.fn.highlight = <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">options</span>) </span>{
    <span class="hljs-comment">// &#x5408;&#x5E76;&#x9ED8;&#x8BA4;&#x503C;&#x548C;&#x7528;&#x6237;&#x8BBE;&#x5B9A;&#x503C;:</span>
    <span class="hljs-keyword">var</span> opts = $.extend({}, $.fn.highlight.defaults, options);
    <span class="hljs-keyword">this</span>.css(<span class="hljs-string">&apos;backgroundColor&apos;</span>, opts.backgroundColor).css(<span class="hljs-string">&apos;color&apos;</span>, opts.color);
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>;
}

<span class="hljs-comment">// &#x8BBE;&#x5B9A;&#x9ED8;&#x8BA4;&#x503C;:</span>
$.fn.highlight.defaults = {
    color: <span class="hljs-string">&apos;#d85030&apos;</span>,
    backgroundColor: <span class="hljs-string">&apos;#fff8de&apos;</span>
}
</code></pre>
<p>&#x8FD9;&#x6B21;&#x7528;&#x6237;&#x7EC8;&#x4E8E;&#x6EE1;&#x610F;&#x4E86;&#x3002;</p>
<p>&#x6700;&#x7EC8;&#xFF0C;&#x6211;&#x4EEC;&#x5F97;&#x51FA;&#x7F16;&#x5199;&#x4E00;&#x4E2A;jQuery&#x63D2;&#x4EF6;&#x7684;&#x539F;&#x5219;&#xFF1A;</p>
<ol>
<li>&#x7ED9;<code>$.fn</code>&#x7ED1;&#x5B9A;&#x51FD;&#x6570;&#xFF0C;&#x5B9E;&#x73B0;&#x63D2;&#x4EF6;&#x7684;&#x4EE3;&#x7801;&#x903B;&#x8F91;&#xFF1B;</li>
<li>&#x63D2;&#x4EF6;&#x51FD;&#x6570;&#x6700;&#x540E;&#x8981;<code>return this;</code>&#x4EE5;&#x652F;&#x6301;&#x94FE;&#x5F0F;&#x8C03;&#x7528;&#xFF1B;</li>
<li>&#x63D2;&#x4EF6;&#x51FD;&#x6570;&#x8981;&#x6709;&#x9ED8;&#x8BA4;&#x503C;&#xFF0C;&#x7ED1;&#x5B9A;&#x5728;<code>$.fn.&lt;pluginName&gt;.defaults</code>&#x4E0A;&#xFF1B;</li>
<li>&#x7528;&#x6237;&#x5728;&#x8C03;&#x7528;&#x65F6;&#x53EF;&#x4F20;&#x5165;&#x8BBE;&#x5B9A;&#x503C;&#x4EE5;&#x4FBF;&#x8986;&#x76D6;&#x9ED8;&#x8BA4;&#x503C;&#x3002;</li>
</ol>
<h3 id="&#x9488;&#x5BF9;&#x7279;&#x5B9A;&#x5143;&#x7D20;&#x7684;&#x6269;&#x5C55;">&#x9488;&#x5BF9;&#x7279;&#x5B9A;&#x5143;&#x7D20;&#x7684;&#x6269;&#x5C55;</h3>
<p>&#x6211;&#x4EEC;&#x77E5;&#x9053;jQuery&#x5BF9;&#x8C61;&#x7684;&#x6709;&#x4E9B;&#x65B9;&#x6CD5;&#x53EA;&#x80FD;&#x4F5C;&#x7528;&#x5728;&#x7279;&#x5B9A;DOM&#x5143;&#x7D20;&#x4E0A;&#xFF0C;&#x6BD4;&#x5982;<code>submit()</code>&#x65B9;&#x6CD5;&#x53EA;&#x80FD;&#x9488;&#x5BF9;<code>form</code>&#x3002;&#x5982;&#x679C;&#x6211;&#x4EEC;&#x7F16;&#x5199;&#x7684;&#x6269;&#x5C55;&#x53EA;&#x80FD;&#x9488;&#x5BF9;&#x67D0;&#x4E9B;&#x7C7B;&#x578B;&#x7684;DOM&#x5143;&#x7D20;&#xFF0C;&#x5E94;&#x8BE5;&#x600E;&#x4E48;&#x5199;&#xFF1F;</p>
<p>&#x8FD8;&#x8BB0;&#x5F97;jQuery&#x7684;&#x9009;&#x62E9;&#x5668;&#x652F;&#x6301;<code>filter()</code>&#x65B9;&#x6CD5;&#x6765;&#x8FC7;&#x6EE4;&#x5417;&#xFF1F;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x501F;&#x52A9;&#x8FD9;&#x4E2A;&#x65B9;&#x6CD5;&#x6765;&#x5B9E;&#x73B0;&#x9488;&#x5BF9;&#x7279;&#x5B9A;&#x5143;&#x7D20;&#x7684;&#x6269;&#x5C55;&#x3002;</p>
<p>&#x4E3E;&#x4E2A;&#x4F8B;&#x5B50;&#xFF0C;&#x73B0;&#x5728;&#x6211;&#x4EEC;&#x8981;&#x7ED9;&#x6240;&#x6709;&#x6307;&#x5411;&#x5916;&#x94FE;&#x7684;&#x8D85;&#x94FE;&#x63A5;&#x52A0;&#x4E0A;&#x8DF3;&#x8F6C;&#x63D0;&#x793A;&#xFF0C;&#x600E;&#x4E48;&#x505A;&#xFF1F;</p>
<p>&#x5148;&#x5199;&#x51FA;&#x7528;&#x6237;&#x8C03;&#x7528;&#x7684;&#x4EE3;&#x7801;&#xFF1A;</p>
<pre><code>$(&apos;#main a&apos;).external();
</code></pre><p>&#x7136;&#x540E;&#x6309;&#x7167;&#x4E0A;&#x9762;&#x7684;&#x65B9;&#x6CD5;&#x7F16;&#x5199;&#x4E00;&#x4E2A;<code>external</code>&#x6269;&#x5C55;&#xFF1A;</p>
<pre><code class="lang-javascript">$.fn.external = <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"></span>) </span>{
    <span class="hljs-comment">// return&#x8FD4;&#x56DE;&#x7684;each()&#x8FD4;&#x56DE;&#x7ED3;&#x679C;&#xFF0C;&#x652F;&#x6301;&#x94FE;&#x5F0F;&#x8C03;&#x7528;:</span>
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>.filter(<span class="hljs-string">&apos;a&apos;</span>).each(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"></span>) </span>{
        <span class="hljs-comment">// &#x6CE8;&#x610F;: each()&#x5185;&#x90E8;&#x7684;&#x56DE;&#x8C03;&#x51FD;&#x6570;&#x7684;this&#x7ED1;&#x5B9A;&#x4E3A;DOM&#x672C;&#x8EAB;!</span>
        <span class="hljs-keyword">var</span> a = $(<span class="hljs-keyword">this</span>);
        <span class="hljs-keyword">var</span> url = a.attr(<span class="hljs-string">&apos;href&apos;</span>);
        <span class="hljs-keyword">if</span> (url &amp;&amp; (url.indexOf(<span class="hljs-string">&apos;http://&apos;</span>)===<span class="hljs-number">0</span> || url.indexOf(<span class="hljs-string">&apos;https://&apos;</span>)===<span class="hljs-number">0</span>)) {
            a.attr(<span class="hljs-string">&apos;href&apos;</span>, <span class="hljs-string">&apos;#0&apos;</span>)
             .removeAttr(<span class="hljs-string">&apos;target&apos;</span>)
             .append(<span class="hljs-string">&apos; &lt;i class=&quot;uk-icon-external-link&quot;&gt;&lt;/i&gt;&apos;</span>)
             .click(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"></span>) </span>{
                <span class="hljs-keyword">if</span>(confirm(<span class="hljs-string">&apos;&#x4F60;&#x786E;&#x5B9A;&#x8981;&#x524D;&#x5F80;&apos;</span> + url + <span class="hljs-string">&apos;&#xFF1F;&apos;</span>)) {
                    <span class="hljs-built_in">window</span>.open(url);
                }
            });
        }
    });
}
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="AJAX.html" class="navigation navigation-prev " aria-label="Previous page: AJAX">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../nodejs/nodejs.html" class="navigation navigation-next " aria-label="Next page: Nodejs">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"扩展","level":"1.5.6","depth":2,"next":{"title":"Nodejs","level":"1.6","depth":1,"path":"nodejs/nodejs.md","ref":"nodejs/nodejs.md","articles":[{"title":"模块","level":"1.6.1","depth":2,"path":"nodejs/模块.md","ref":"nodejs/模块.md","articles":[]},{"title":"path","level":"1.6.2","depth":2,"path":"nodejs/path.md","ref":"nodejs/path.md","articles":[]},{"title":"文件操作 fs","level":"1.6.3","depth":2,"path":"nodejs/文件操作.md","ref":"nodejs/文件操作.md","articles":[]},{"title":"流Stream","level":"1.6.4","depth":2,"path":"nodejs/流Stream.md","ref":"nodejs/流Stream.md","articles":[]},{"title":"zlib压缩解压缩","level":"1.6.5","depth":2,"path":"nodejs/zlib压缩解压缩.md","ref":"nodejs/zlib压缩解压缩.md","articles":[]},{"title":"net网络","level":"1.6.6","depth":2,"path":"nodejs/net网络.md","ref":"nodejs/net网络.md","articles":[]},{"title":"http","level":"1.6.7","depth":2,"path":"nodejs/http.md","ref":"nodejs/http.md","articles":[]},{"title":"express框架","level":"1.6.8","depth":2,"path":"nodejs/express框架.md","ref":"nodejs/express框架.md","articles":[]},{"title":"process 进程","level":"1.6.9","depth":2,"path":"nodejs/process进程.md","ref":"nodejs/process进程.md","articles":[]},{"title":"child_process","level":"1.6.10","depth":2,"path":"nodejs/child_process.md","ref":"nodejs/child_process.md","articles":[]},{"title":"os-操作系统","level":"1.6.11","depth":2,"path":"nodejs/os.md","ref":"nodejs/os.md","articles":[]}]},"previous":{"title":"AJAX","level":"1.5.5","depth":2,"path":"Jquery/AJAX.md","ref":"Jquery/AJAX.md","articles":[]},"dir":"ltr"},"config":{"plugins":["lunr","pageview-count","chapter-fold","back-to-top-button","code","hide-element","-sharing","sharing-plus","custom-favicon"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"chapter-fold":{},"search":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"lunr":{"ignoreSpecialCharacters":false,"maxIndexSize":1000000},"code":{"copyButtons":true},"hide-element":{"elements":[".gitbook-link"]},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"favicon":"js.ico","back-to-top-button":{},"pageview-count":{},"custom-favicon":{},"sharing":{"qq":true,"all":["douban","facebook","google","instapaper","linkedin","twitter","weibo","messenger","qq","qzone","viber","whatsapp"],"douban":true,"facebook":true,"weibo":true,"twitter":true,"pocket":true,"google":true,"qzone":true},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"Veng","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"JavaScript学习","language":"zh-hans","gitbook":"*","description":"javaScript的学习笔记"},"file":{"path":"Jquery/扩展.md","mtime":"2020-12-10T02:10:04.958Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-12-10T03:00:51.663Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-hide-element/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

